#include "StdAfx.h"
#include "DD_ImgAnaly.h"


#include "xhImgAnaly.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

DD_ImgAnaly::DD_ImgAnaly()
{
	m_pxhImgAnaly = new xhImgAnaly;

}

DD_ImgAnaly::~DD_ImgAnaly()
{
	MySafeDelete(m_pxhImgAnaly);
}

int DD_ImgAnaly::Initialize()
{
	return m_pxhImgAnaly->Initialize();
}
int DD_ImgAnaly::UnInitialize()
{
	return m_pxhImgAnaly->UnInitialize();
}
int DD_ImgAnaly::SetHwnd(int nWindow,HWND hWnd,zkScreenMon *pScreen)
{
	return m_pxhImgAnaly->SetHwnd(nWindow,hWnd,pScreen);
}
int DD_ImgAnaly::RegOnDrawCallBack(AnalyOnDrawCallBackFun funCallBack,void *pContext)
{
	return m_pxhImgAnaly->RegOnDrawCallBack(funCallBack,pContext);
}
int DD_ImgAnaly::RegMsgCallBack(AnalyMsgCallBackFun funCallBack,void *pContext)
{
	return m_pxhImgAnaly->RegMsgCallBack(funCallBack,pContext);
}

int DD_ImgAnaly::SetAnalyDirectory(char *pAnalyDir)
{
	return m_pxhImgAnaly->SetAnalyDirectory(pAnalyDir);
}

int DD_ImgAnaly::SetTemplate(int nType,zkAnalyTempInfo *pInfo)
{
	return m_pxhImgAnaly->SetTemplate(nType,pInfo);
}
int DD_ImgAnaly::DeleteTemplate(int nType)
{
	return m_pxhImgAnaly->DeleteTemplate(nType);
}
int DD_ImgAnaly::GetTemplates()
{
	return m_pxhImgAnaly->GetTemplates();
}
int DD_ImgAnaly::GetTemplateList(void **ppList,int &nCount)
{
	return m_pxhImgAnaly->GetTemplateList(ppList,nCount);
}
int DD_ImgAnaly::SelectTemplate(int nType,char *pszName,BOOL bBlock)
{
	return m_pxhImgAnaly->SelectTemplate(nType,pszName,bBlock);
}
int DD_ImgAnaly::GetSelectTemplate(zkAnalyTempInfo **ppInfo)
{
return m_pxhImgAnaly->GetSelectTemplate(ppInfo);
}

int DD_ImgAnaly::GetPoints(zkAnalyPointInfo **ppPoint,int &nCount)
{
	return m_pxhImgAnaly->GetPoints(ppPoint,nCount);
}



int DD_ImgAnaly::SelectPoint(int nPoint,int nAidImage,BOOL bShow)
{
	return m_pxhImgAnaly->SelectPoint(nPoint,nAidImage,bShow);
}
int DD_ImgAnaly::AddPointBuffer(int nPoint,zkImgBitInfo *pImgInfo,int nAidImage,BOOL bShareMem)
{
	return m_pxhImgAnaly->AddPointBuffer(nPoint,pImgInfo,nAidImage,bShareMem);
}
int DD_ImgAnaly::SavePoint()
{
	return m_pxhImgAnaly->SavePoint();
}

int DD_ImgAnaly::GetPointIndex(int &nIndex)
{
	return m_pxhImgAnaly->GetPointIndex(nIndex);
}

int DD_ImgAnaly::SetAnalyCfg(void *pVoid)
{
	return m_pxhImgAnaly->SetAnalyCfg(pVoid);
}
int DD_ImgAnaly::GetAnalyCfg(void **ppVoid)
{
	return m_pxhImgAnaly->GetAnalyCfg(ppVoid);
}

int DD_ImgAnaly::SetUserData(BYTE *pUserData,int nDataSize)
{
	return m_pxhImgAnaly->SetUserData(pUserData,nDataSize);
}
int DD_ImgAnaly::GetUserData(BYTE **ppUserData,int &nDataSize)
{
	return m_pxhImgAnaly->GetUserData(ppUserData,nDataSize);
}

int DD_ImgAnaly::DeletePoint(int nPoint)
{
	return m_pxhImgAnaly->DeletePoint(nPoint);
}


int DD_ImgAnaly::CheckPoint(int nPoint,zkImgBitInfo *pImgInfo,BOOL bShareMem,BOOL bShowImg)
{
	return m_pxhImgAnaly->CheckPoint(nPoint,pImgInfo,bShareMem,bShowImg);
}

int DD_ImgAnaly::GetImageSize(int &nWidth,int &nHeight)
{
	return m_pxhImgAnaly->GetImageSize(nWidth,nHeight);
}



int	DD_ImgAnaly::Draw(int nWindow,void *pVoid)
{
	return m_pxhImgAnaly->Draw(nWindow,pVoid);
}

int DD_ImgAnaly::ImageCtrl(int nWindow,DWORD dwType,void *pVoid)
{
	return m_pxhImgAnaly->ImageCtrl(nWindow,dwType,pVoid);
}


int DD_ImgAnaly::OperateMethod(DWORD dwMethod,void *pVoid)
{
	return m_pxhImgAnaly->OperateMethod(dwMethod,pVoid);
}

int DD_ImgAnaly::GetHistogramInfo(int nWindow,zkImgHistogram **ppHistogram)
{
	return m_pxhImgAnaly->GetHistogramInfo(nWindow,ppHistogram);
}

int DD_ImgAnaly::SetLogFile(char *pLogFile)
{
	return m_pxhImgAnaly->SetLogFile(pLogFile);
}
int DD_ImgAnaly::SetImgBuffer(int nPoint,zkImgBitInfo *pImgInfo,BOOL bShareMem,BOOL bBlock)
{
	return m_pxhImgAnaly->SetImgBuffer(nPoint,pImgInfo,bShareMem,bBlock);
}










